import styles from './index.less';
import { TreeSelect } from 'antd';
import { useState, useEffect } from 'react';
export default props => {
  return (
    <div className={styles.lableselectbox}>
      <div className={styles.handlerinput}>
        <TreeSelect
          showSearch
          style={{ width: '100%', height: '100%' }}
          defaultValue={props.value}
          treeData={props.treeData}
          placeholder="选择科目"
          treeDefaultExpandAll
          onSelect={(value, item) => {
            if (props.onFocusLeaves) {
              props.onFocusLeaves(item);
            }
          }}
        />
      </div>
    </div>
  );
};
